/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/phone-contact.html#wxaddphonecontactobject)
 */
export default function add_phone_contact(firstName: string, photoFilePath?: string, nickName?: string, lastName?: string, middleName?: string, remark?: string, mobilePhoneNumber?: string, weChatNumber?: string, addressCountry?: string, addressState?: string, addressCity?: string, addressStreet?: string, addressPostalCode?: string, organization?: string, title?: string, workFaxNumber?: string, workPhoneNumber?: string, hostNumber?: string, email?: string, url?: string, workAddressCountry?: string, workAddressState?: string, workAddressCity?: string, workAddressStreet?: string, workAddressPostalCode?: string, homeFaxNumber?: string, homePhoneNumber?: string, homeAddressCountry?: string, homeAddressState?: string, homeAddressCity?: string, homeAddressStreet?: string, homeAddressPostalCode?: string) {
	return new Promise<boolean>((resolve, reject) => {
		wx.addPhoneContact({
			addressCity,
			addressCountry,
			addressPostalCode,
			addressState,
			addressStreet,
			email,
			firstName,
			homeAddressCity,
			homeAddressCountry,
			homeAddressPostalCode,
			homeAddressState,
			homeAddressStreet,
			homeFaxNumber,
			homePhoneNumber,
			hostNumber,
			lastName,
			middleName,
			mobilePhoneNumber,
			nickName,
			organization,
			photoFilePath,
			remark,
			title,
			url,
			weChatNumber,
			workAddressCity,
			workAddressCountry,
			workAddressPostalCode,
			workAddressState,
			workAddressStreet,
			workFaxNumber,
			workPhoneNumber,
			success() {
				resolve(true);	// 需要判断一下返回值，用户取消|调用失败
			},
			fail() {
				reject(false);
			}
		});
	});
}
